home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 32 / Mac Magazin and MacEasy Magazine CD - Issue 32.iso / Grafik & Text / OzTeX3.0 / TeX-inputs / LaTeX / tools / enumerate.sty < prev    next >
Text File  |  1997-03-07  |  3KB  |  74 lines

  1. %%
  2. %% This is file `enumerate.sty',
  3. %% generated with the docstrip utility.
  4. %%
  5. %% The original source files were:
  6. %%
  7. %% enumerate.dtx  (with options: `package')
  8. %% 
  9. %% IMPORTANT NOTICE:
  10. %% 
  11. %% This file is a generated file from the sources of the `tools' bundle
  12. %% in the LaTeX2e distribution.
  13. %% 
  14. %% For the copyright notice see the source file(s).
  15. %% 
  16. %% You are not allowed to modify this file.
  17. %% 
  18. %% You are allowed to distribute this file if and only if
  19. %% it is distributed with the corresponding source files in
  20. %% the `tools' bundle.
  21. %% 
  22. %% For the copying and distribution conditions of the source files,
  23. %% see the file readme.txt distributed with the tools bundle.
  24. %% 
  25. %% File: enumerat.dtx Copyright (C) 1993-1994 David Carlisle
  26. \NeedsTeXFormat{LaTeX2e}
  27. \ProvidesPackage{enumerate}
  28.          [1994/01/31 v2.02 enumerate extensions (DPC)]
  29. \newtoks\@enLab
  30. \def\@enQmark{?}
  31. \def\@enLabel#1#2{%
  32.   \edef\@enThe{\noexpand#1{\@enumctr}}%
  33.   \@enLab\expandafter{\the\@enLab\csname the\@enumctr\endcsname}%
  34.   \@enloop}
  35. \def\@enSpace{\afterassignment\@enSp@ce\let\@tempa= }
  36. \def\@enSp@ce{\@enLab\expandafter{\the\@enLab\space}\@enloop}
  37. \def\@enGroup#1{\@enLab\expandafter{\the\@enLab{#1}}\@enloop}
  38. \def\@enOther#1{\@enLab\expandafter{\the\@enLab#1}\@enloop}
  39. \def\@enloop{\futurelet\@entemp\@enloop@}
  40. \def\@enloop@{%
  41.   \ifx A\@entemp         \def\@tempa{\@enLabel\Alph  }\else
  42.   \ifx a\@entemp         \def\@tempa{\@enLabel\alph  }\else
  43.   \ifx i\@entemp         \def\@tempa{\@enLabel\roman }\else
  44.   \ifx I\@entemp         \def\@tempa{\@enLabel\Roman }\else
  45.   \ifx 1\@entemp         \def\@tempa{\@enLabel\arabic}\else
  46.   \ifx \@sptoken\@entemp \let\@tempa\@enSpace         \else
  47.   \ifx \bgroup\@entemp   \let\@tempa\@enGroup         \else
  48.   \ifx \@enum@\@entemp   \let\@tempa\@gobble          \else
  49.                          \let\@tempa\@enOther
  50.              \fi\fi\fi\fi\fi\fi\fi\fi
  51.   \@tempa}
  52. \def\enumerate{%
  53.   \ifnum \@enumdepth >3 \@toodeep\else
  54.       \advance\@enumdepth \@ne
  55.       \edef\@enumctr{enum\romannumeral\the\@enumdepth}\fi
  56.   \@ifnextchar[{\@@enum@}{\@enum@}}
  57. \def\@@enum@[#1]{%
  58.   \@enLab{}\let\@enThe\@enQmark
  59.   \@enloop#1\@enum@
  60.   \ifx\@enThe\@enQmark\@warning{The counter will not be printed.%
  61.    ^^J\space\@spaces\@spaces\@spaces The label is: \the\@enLab}\fi
  62.   \expandafter\edef\csname label\@enumctr\endcsname{\the\@enLab}%
  63.   \expandafter\let\csname the\@enumctr\endcsname\@enThe
  64.   \csname c@\@enumctr\endcsname7
  65.   \expandafter\settowidth
  66.             \csname leftmargin\romannumeral\@enumdepth\endcsname
  67.             {\the\@enLab\hspace{\labelsep}}%
  68.   \@enum@}
  69. \def\@enum@{\list{\csname label\@enumctr\endcsname}%
  70.            {\usecounter{\@enumctr}\def\makelabel##1{\hss\llap{##1}}}}
  71. \endinput
  72. %%
  73. %% End of file `enumerate.sty'.
  74.